package com.touch.workshop.ui;
import javax.swing.*;
import com.touch.workshop.ui.expgrowth.CurveControls;
import com.touch.workshop.ui.library.LibraryControls;
import com.touch.workshop.ui.scripteditor.ScriptEditorControls;
public class Application extends JFrame
{
	public static void main(String args[])
	{
		new Application();
	}
	
	private static final long serialVersionUID = 8649937997731132695L;
	protected MenuBar menubar = new MenuBar();
	public static final JDesktopPane vDesktop = new JDesktopPane();
	
	protected Application()
	{
		super("Solar Eclipse Workshop");						
		
		this.setJMenuBar(menubar);
		this.setSize(800,600);
		this.setMaximumSize(this.getSize());
		this.setMinimumSize(this.getSize());
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);					
		this.setContentPane(vDesktop);
		vDesktop.add(Controls.LEVE_LIMIT);
		vDesktop.add(CurveControls.EXP_CHART);
		vDesktop.add(CurveControls.EXP_CURVE);
		vDesktop.add(CurveControls.EXP_SCALE);
		vDesktop.add(LibraryControls.LIBRARY);
		vDesktop.add(ScriptEditorControls.SCRIPT_EDITOR);
		
		LibraryControls.LIBRARY.setVisible(true);
		this.setVisible(true);			
	}
}
